package com.focusai.efairy.config;

import com.bumptech.glide.load.engine.cache.DiskCache;
import com.focusai.efairy.BuildConfig;
import com.focusai.efairy.EFApplication;

import java.io.File;

/**
 * Created by luo_guangwen on 2017/7/7.
 */

public class AppConfig {
    public final static boolean isDebugMode = BuildConfig.DEBUG;
//    public final static boolean isDebugMode = false;

    /** 电次元app */
    public static final int APP_EFAIRY = 1;

    /** 中城物联app */
    public static final int APP_CCIOT = 2;

    /** 基目录 */
    public static final String BASE_PATH_NAME = "focusAi" +  File.separator + "efairy";//ZhiHuiJi这个目录改成现在的scm


    /**Glide图片缓存目录名*/
    public static final String GLIDE_CACHE_IMAGE_NAME = "cache";

    /** 日志目录 */
    public static final String PATH_LOG_NAME =  "log";

    /**临时图片*/
    public static final String PATH_IMAGE_NAME =  "image";

    public static final String IMAGE_DIR_NAME = "Images";

    public static String IMAGE_PATH = AppDirFileUtil.getLocalFile(EFApplication.getContext(),IMAGE_DIR_NAME).getAbsolutePath() + File.separator;

    /** 是否显示列表字母的长度下限（>此值时不显示） */
    public static final int LIST_START_LENGTH = 300;

    /**Glide图片缓存大小*/
    public static final int GLIDE_CACHE_IMAGE_SIZE = DiskCache.Factory.DEFAULT_DISK_CACHE_SIZE;
    public static final String HTTP = "http://";
    public static final String HTTPS = "https://";
    public static final String HOST_EFAIRYT_DEBUG = "efairyts.tokabu.com";  //电次元测试域名:efairyts.tokabu.com
    public static final String HOST_EFAIRYT = "efairy.tokabu.com";  //电次元正式域名:efairy.tokabu.com

    public static final String HOST_CCIOT_DEBUG = "efairyts.tokabu.com";  //中城物联测试域名
    public static final String HOST_CCIOT = "cciotapp.tokabu.com";  //中城物联正式域名

    /**电次元融云key*/
    public static final String EFAIRY_RONGYUN_KEY_DEBUG = "vnroth0kvdmso"; //测试:vnroth0kvdmso
    public static final String EFAIRY_RONGYUN_KEY= "m7ua80gbmpi3m";//正式环境:m7ua80gbmpi3m

    /**中城物联融云key*/
    public static final String CCIOT_RONGYUN_KEY_DEBUG = "pvxdm17jpizar"; //测试
    public static final String CCIOT_RONGYUN_KEY= "uwd1c0sxuvio1";//正式环境



    /**小米appID**/
    public static final String XIAOMI_APP_ID = "2882303761517802085";
    public static final String XIAOMI_APP_KEY ="5451780267085";
}
